package com.cicc.beergamevirtualsimulationsystem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cicc.beergamevirtualsimulationsystem.entity.LimitLogEntity;
import com.cicc.beergamevirtualsimulationsystem.mapper.LimitMapper;
import com.cicc.beergamevirtualsimulationsystem.service.LimitService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

/**
 * @author 银角大王
 */
@Service
@RequiredArgsConstructor
public class LimitServiceImpl extends ServiceImpl<LimitMapper, LimitLogEntity> implements LimitService {
    private final LimitMapper limitMapper;

    @Override
    public List<LimitLogEntity> checkIpLimit(String ip, String type, LocalDate now) {
        return limitMapper.checkIpLimit(ip, type, now);
    }
}
